import axios from 'axios'
// 联系人列表
export const reqLinkmanList = (data)=>
axios({
  url:'/api/crm/linkman-v/condition',
  method:'get',
  params:data
});

// 添加联系人
export const reqAddLinkman = (data)=>
axios({
  url:'/api/crm/linkman/insert',
  method:'post',
  data:data
});

// 删除联系人
export const deleteLinkman = (data)=>
axios({
  url:'/api/crm/linkman/delete',
  method:'delete',
  data:data
});

// 编辑联系人
export const updateLinkman = (data)=>
axios({
  url:'/api/crm/linkman/update',
  method:'put',
  data:data
});
// 联系人家庭成员列表
export const reqFamilyList = (data)=>
axios({
  url:'/api/crm/family/condition',
  method:'get',
  params:data
});
// 添加联系人家庭成员
export const reqAddFamily = (data)=>
axios({
  url:'/api/crm/family/insert',
  method:'post',
  data:data
});

// 删除联系人家庭成员
export const deleteFamily = (data)=>
axios({
  url:'/api/crm/family/delete',
  method:'delete',
  data:data
});

// 编辑联系人家庭成员
export const updateFamily = (data)=>
axios({
  url:'/api/crm/family/update',
  method:'put',
  data:data
});